home *** CD-ROM | disk | FTP | other *** search
/ Celestin Apprentice 7 / Apprentice-Release7.iso / Environments / PowerFantasm™ 4.19a / Beginners guide / Beginners Mac Assembly - ed.srd / Beginners Mac Assembly - ed.srd.rsrc / PICT_53.png < prev    next >
Portable Network Graphic  |  1996-08-28  |  122KB  |  816x1056  |  8-bit (256 colors)
Labels: book | bulletin board | encyclical | reckoner | sky
OCR: *AU*28* 1990 *SECTIONB PrOgram age KEYDOWN: LEA SEVENTREC,A0 MOVE.W 14(A0),D1 MODIFIERS (NORMAL KEY OR MENU CLICK CLR.LDO MOVE 5(A0),D0 THE KEY THAT WAS PRESSED ANDI #256,D1 BEQ.S NORMAL KEY KEYBOARD KEY **HERE ITS MENU CLICK (SP) MENUKEY RETURNS ALONG EXT.W DO MOVE DO.- -(SP) THE KEY MENUKEY GET 'MENU SELECTION MOVE.I (SP) DO IN DO BSR DO MENU PROCESS MENU SELECTION (IN MENUS.S RTS Section 5b handles the key processing. The Mac will also return a key if a menu item has an apple key assigned to it so for example "open" in. the file menu can be activated by typing [command] 0 We for this by moving the at 4 in the event into d1 and anding with 256. If its a zero its a normal key if not its a menu key Note that be easier to test byte 15 in the event record, but as this IS an example byte 15 0 ...